package com.woniuxy.microloanserver.controller;

import com.woniuxy.bean.ResultBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;

/**
 * Description: 用户还款业务
 *
 * @Auther: HanLei
 * @Date: 2021/4/20:15:46
 */
@RefreshScope
@Slf4j
@Api(tags = "用户还款相关接口")
@RestController
@RequestMapping(value = "/loan/repayment", produces = {"application/json;charset=utf-8"})
public class UserRepaymentController {



    @ApiOperation("用户还款接口")
    @PostMapping("/repayment")
    public ResultBean repayment() {

        return null;
    }

    @ApiOperation("用户查看本月待还账单")
    @GetMapping("/repayment/{userId}")
    public ResultBean getBillThisMonth(
            @ApiParam(value = "用户ID", required = true) @PathVariable(value = "userId") Integer userId) {



        return null;
    }
}
